<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
        字符串 :引号
          1.特殊字符,用转义符
          2,length获取字符串的长度(有多少个字符)
          3.+可以进行字符串的拼接
          4.字符串拼接其他数据类型后还是字符串
          5.字符串和变量拼接,引引加加;
        */
       let address ='兰\'考\n河南';
       console.log(address);

       let hero ="青莲剑仙";
       let lol ='复仇之矛';
       console.log('hero剑刃的长度为' + hero.length);
       console.log('复仇之茅的矛长为'+lol.length+'米');

       let subject ='h5';
       let subject1 = 'js';
       let result ='h5'+'js';
       console.log(result);
       console.log(subject+subject1);

       let star = '罗翔';
    //    star =star + 37;
    star = star + true;
    console.log(typeof star);

    let gloryOfKings = '王者荣耀';
    console.log('英雄联盟' + gloryOfKings + '周杰伦');
    </script>
</body>
</html>